package com.alibaba.algo;

import com.google.common.eventbus.EventBus;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by IntelliJ IDEA.
 * User: glorysongglory
 * Date: 2020/11/17
 * Time: 17:48
 */
@Configuration
public class EventBusConfig {

    @Bean
    public EventBus eventBus() {
        return new EventBus();
    }

    @Bean
    public EventBus eventBusAlgo() {
        return new EventBus("algo");
    }

}
